package com.ruoyi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.util.OurBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * artilce对象 article
 *
 * @author ruoyi
 * @date 2025-01-16
 */
@Data
@TableName("article")
public class Article extends OurBaseEntity
{
    private static final long serialVersionUID = 1L;
    /** id */
    @TableId(value = "article_id", type = IdType.AUTO)
    private Long articleId;

    /** 标题 */
    @Excel(name = "标题")
    @TableField(value = "title")
    private String title;


    /** 文章来源 */
    @Excel(name = "文章来源")
    @TableField(value = "article_origin")
    private String articleOrigin;

    /** 栏目id */
    @Excel(name = "栏目id")
    @TableField(value = "column_id")
    private Long columnId;

    /** 内容 */
    @Excel(name = "内容")
    @TableField(value = "content")
    private String content;

    /** 责任编辑 */
    @Excel(name = "责任编辑")
    @TableField(value = "author")
    private String author;

    /** 封面路径 */
    @Excel(name = "封面路径")
    @TableField(value = "cover_path")
    private String coverPath;

    /** ip 地址 */
    @Excel(name = "ip 地址")
    @TableField(value = "ip")
    private String ip;

    /** pubdate 审核日期*/
    @Excel(name="审核日期")
    @TableField(value = "pubdate")
    private String pubdate;

    /** 审核通过表 */
    @Excel(name = "审核通过表")
    @TableField(value="appval")
    private String appval;

    /** 附件路径 */
    @Excel(name = "附件路径")
    @TableField(value="attachment")
    private String attachment;


    @TableField(value="auditId")
    private Long auditId;

    /** 副标题1 */
    @TableField(value="little_title1")
    @Excel(name = "副标题1")
    private String littleTitle1;

    /** 副标题2 */
    @TableField(value="little_title2")
    @Excel(name = "副标题2")
    private String littleTitle2;

    /** 状态（0-显示 1-隐藏） */
    @Excel(name = "状态", readConverterExp = "0=显示,1=隐藏")
    @TableField(value = "status")
    private Integer status;


    /** 开始审核日期 */
    @TableField(exist = false)
    private String beginPubdate;

    /** 结束审核日期 */
    @TableField(exist = false)
    private String endPubdate;

    @TableField("pdf_image_paths")
    private String pdfImagePaths;


}
